Leetcode 1504. Count Submatrices With All Ones